import request from '@/utils/request'

export function getProjectAppraiseList(data) {
  return request({
    url: 'project/appraise/list',
    method: 'post',
    data
  })
}

export function getProjectAppraise(id) {
  return request({
    url: 'project/appraise/get',
    method: 'post',
    params: { id }
  })
}

export function addProjectAppraise(data) {
  return request({
    url: 'project/appraise/add',
    method: 'post',
    data
  })
}

export function editProjectAppraise(data) {
  return request({
    url: 'project/appraise/edit',
    method: 'post',
    data
  })
}

export function editProjectAppraiseStatus(id, status) {
  return request({
    url: 'project/appraise/edit_status',
    method: 'post',
    params: { id, status }
  })
}
